package cn.tuling.feign;

import cn.tuling.entity.DO.Product;
import cn.tuling.feign.config.FeignProductConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "feign-product")
public interface FeignProductFeignClient {

    @GetMapping("/product/{id}")
    Product getProduct(@PathVariable Integer id);
}
